public class Test {

    public static void main(String[] args) {


        String str="http://weike.lanqiao.cn/static/coursehuifang/sjjgbn11/content/11.37tree%E9%A2%98%E8%A7%A38-%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88(2).html";

        System.out.println(str.substring(0, str.lastIndexOf("/")));

    }
}
